package com.walker.jdkapi.future;

import java.util.concurrent.TimeUnit;

public class TargetData implements Data {
	
	private String requestData;
	
	public TargetData(String requestData) {
		this.requestData = requestData;
	}
	
	public TargetData() {
		super();
	}

	@Override
	public String getRequest() {
		try {
			TimeUnit.SECONDS.sleep(5);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		return "这是一个耗时的请求：" + requestData;
	}

}
